package schooltg.core.persist.dao;

import schooltg.core.data.Attach;
import schooltg.core.persist.entity.AttachPO;
import mtons.modules.persist.BaseRepository;

import java.util.List;
import java.util.Set;

public interface AttachDao extends BaseRepository<AttachPO> {
	List<AttachPO> findByTarget(long toId);
	List<AttachPO> findByTarget(Set<Long> toIds);
	List<AttachPO> findByIds(Set<Long> ids);

	void batchAdd(List<Attach> datas);
	void deleteByToId(long toId);
}
